import store from '@/store'
export const tableOption = {
  selection: true,
  selectable:(row,index)=>{
    if(store.getters.userInfo.lineCode == row.outLineCode && store.getters.userInfo.stationCode == row.outStationCode && row.isConfirmOut == '0'){
      return true;
    }
    if(store.getters.userInfo.lineCode == row.inLineCode && store.getters.userInfo.stationCode == row.inStationCode && row.isConfirmIn == '0'){
      return true;
    }
    return false;
  },
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "addBtn":false,
  "menu": false,
  "searchMenuSpan": 6,
  height: 450,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      hide:true,
      display:false
    },	  {
      "type": "select",
      "label": "调出线路",
      "prop": "outLineCode",
      search:true,
      cascaderItem: ["outStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
    },	  {
      "type": "select",
      "label": "调出站点",
      "prop": "outStationCode",
      search:true,
      dicFlag: false,
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamstation/dict/{{key}}"
    },{
      "type": "select",
      "label": "票种",
      "prop": "cardType",
	  search: true,
	  cascaderItem: ["cardTypeParam"],
	  props: {
        label: 'mainName',
        value: 'mainEnName'
      },
      //dicUrl:'/admin/dict/type/support_ticket_type'
      dicUrl: '/support/swpmticketcardtype/dict',
    },
    {
	   "type": "select",
		label: '车票名称',
		prop: 'cardTypeParam',
		dicFlag: false,
		props: {
		  label: 'subName',
		  value: 'subEnName'
		},
		search: true,
		dicUrl: '/support/swpmticketcardtypeparam/dictAll/{{key}}',
    },

	{
      "type": "input",
      "label": "次数",
      "prop": "amount"
    },	  {
      "type": "number",
      "label": "金额",
      "prop": "money",
	  precision: 2,
    },	  {
      "type": "input",
      "label": "计划数量",
      "prop": "outNumber",
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "接收数量",
      "prop": "inNumber"
    },{
      "type": "input",
      "label": "特殊工作卡卡号",
	  "width": 120,
      "prop": "specialCardNo"
    },{
      "type": "input",
      "label": "调出时间",
      "prop": "outTime",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "申请表id用来自动确认接收更改状态",
      "prop": "applyId",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "流水号",
      "prop": "orderNum",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "select",
      "label": "调入线路",
      "prop": "inLineCode",
      search:true,
      cascaderItem: ["inStationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict"
    },	  {
      "type": "select",
      "label": "调入站点",
      "prop": "inStationCode",
      search:true,
      props: {
        label: 'name',
        value: 'code'
      },
      dicFlag: false,
      dicUrl: "/support/swparamstation/dict/{{key}}"
    },	  {
      "type": "input",
      "label": "调入时间",
      "prop": "inTime",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "接收人",
      "prop": "inPerson",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "接收人工号",
      "prop": "inPersonCode",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "操作人",
      "prop": "makePerson",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "操作人工号",
      "prop": "makePersonCode",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "操作时间",
      "prop": "makeTime",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "备注",
      "prop": "remark",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "申诉状态",
      "prop": "applyStatus",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "申诉原因",
      "prop": "applyCase",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "反馈信息",
      "prop": "backMessage",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "前端显隐",
      "prop": "isVisible",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "通知状态",
      "prop": "noticeStatus",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "调出确认通知状态",
      "prop": "isConfirmOut",
      dicUrl:'/admin/dict/type/stm_cycle_notice_confirm',

    },	  {
      "type": "input",
      "label": "调入确认通知状态",
      "prop": "isConfirmIn",
      dicUrl:'/admin/dict/type/stm_cycle_notice_confirm',

    },	  {
      "type": "select",
      "label": "办理状态",
      "prop": "handleStatus",
      search:true,
      dicUrl:'/admin/dict/type/stm_cycle_handle_status'
    },	  {
      "type": "input",
      "label": "调出完成 0未完成 1已完成",
      "prop": "isOut",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "接收完成 0未完成 1已完成",
      "prop": "isIn",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "调票原因",
      "prop": "cycleCase",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "调出人",
      "prop": "outPerson",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "调出人工号",
      "prop": "outPersonCode",
      hide:true,
      addDisplay:false,
      editDisplay:false
    },	  {
      "type": "input",
      "label": "部门id",
      "prop": "deptId",
      hide:true,
      display:false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      hide:true,
      display:false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      hide:true,
      display:false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide:false,
      display:false
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      hide:true,
      display:false
    }  ]
}
